package cn.homework.service.impl;

import cn.homework.dao.TypeDao;
import cn.homework.dao.impl.TypeDaoImpl;
import cn.homework.domain.MainType;
import cn.homework.service.TypeService;

import java.util.List;
import java.util.Map;

/**
 * @author ACT
 */
public class TypeServiceImpl implements TypeService {
    private TypeDao dao = new TypeDaoImpl();

    @Override
    public List<MainType> findAllProductType() {
        return dao.findAllProductType();
    }

    @Override
    public void addProductType(MainType type) {
        dao.addProductType(type);
    }

    @Override
    public void delProductTypeByType(String type) {
        dao.delProductTypeByType(type);
    }

    @Override
    public List<MainType> findProductTypeByCondition(Map<String, String[]> map) {
        return dao.findProductTypeByCondition(map);
    }
}
